#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>
#include<string>

using namespace std;

vector<int> getnum(string s)
{
    vector<int> res;
    while (s.find('.') != s.npos)
    {
        auto it = s.find('.');
        res.push_back(atoi(s.substr(0, it + 1).c_str()));
        s = s.substr(it + 1);
    }
    res.push_back(atoi(s.c_str()));
    return res;
}

int compareVersion(string version1, string version2) {
    auto t1 = getnum(version1);
    auto t2 = getnum(version2);

    int len = max(t1.size(), t2.size());
    t1.resize(len), t2.resize(len);

    for (int i = 0; i < len; i++)
        if (t1[i] > t2[i])   return 1;
        else if (t1[i] < t2[i])  return -1;
    return 0;
}

int main()
{
    compareVersion("1.2", "1.10");
    return 0;
}